package org.ytor.core.webmbc;//package org.rain.core.webmbc;
//
//import org.springframework.boot.web.embedded.undertow.UndertowServletWebServerFactory;
//import org.springframework.boot.web.server.WebServerFactoryCustomizer;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//import java.util.concurrent.Executors;
//
//@Configuration
//public class VirtualThreadConfig {
//
//    /**
//     * 启用 Undertow 虚拟线程接收请求
//     */
//    @Bean
//    public WebServerFactoryCustomizer<UndertowServletWebServerFactory> undertowVirtualThreadCustomizer() {
//        return factory -> factory.addDeploymentInfoCustomizers(deploymentInfo ->
//                deploymentInfo.setExecutor(Executors.newVirtualThreadPerTaskExecutor()));
//    }
//}